
package com.flowmodule.bean;

import com.usersmodule.bean.TbUsers;
import com.usersmodule.dao.TbUsersDAO;

public class TbFlowNode implements java.io.Serializable {

    private int flowNodeId;

    private String flowNodeName;

    private int userId;
    private TbUsers tbUsers;
    
    public TbUsers getTbUsers() {
		return tbUsers;
	}

	private String createTime;

    public int getFlowNodeId(){
        return flowNodeId;
    }

    public void setFlowNodeId(int flowNodeId){
        this.flowNodeId = flowNodeId;
    }

    public String getFlowNodeName(){
        return flowNodeName;
    }

    public void setFlowNodeName(String flowNodeName){
        this.flowNodeName = flowNodeName;
    }

    public int getUserId(){
        return userId;
    }

    public void setUserId(int userId){
        this.userId = userId;
        this.tbUsers=new TbUsersDAO().getTbUsersByUserId(userId);
    }

    public String getCreateTime(){
        return createTime;
    }

    public void setCreateTime(String createTime){
        this.createTime = createTime;
    }


    public TbFlowNode(){
    }
    public TbFlowNode(String flowNodeName,int userId){
        this.flowNodeName = flowNodeName;
        this.userId = userId;
    }
    public TbFlowNode(int flowNodeId,String flowNodeName,int userId){
        this.flowNodeId = flowNodeId;
        this.flowNodeName = flowNodeName;
        this.userId = userId;
    
    }
}

